package tree;

import temp.Label;

public class IfThenElseExp extends Exp {

	Exp cond, a, b;
	Label t = new Label();
	Label f = new Label();
	Label join = new Label();

	public IfThenElseExp(Exp cond, Exp a, Exp b) {
		this.cond = cond;
		this.a = a;
		this.b = b;
	}

	@Override
	public ExpList kids() {
		// TODO
		// return new ExpList(left, new ExpList(right, null));
		return null;
	}

	@Override
	public Exp build(ExpList kids) {
		// TODO
		// return new IfThenElseExp(binop, kids.head, kids.tail.head);
		return null;
	}

	Stm unCx(Label t, Label f) {
		// new CJUMP(rel, l, r, t, f)
		// TODO
		return null;
	}
}
